package com.yeyks.other.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * CNBooking的地址编号表
 * </p>
 *
 * @author yun
 * @since 2019-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AddressCode对象", description="CNBooking的地址编号表")
public class AddressCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "省编号")
    @TableField("province_id")
    private String provinceId;

    @ApiModelProperty(value = "市编号")
    @TableField("city_id")
    private String cityId;

    @ApiModelProperty(value = "区编号")
    @TableField("location_id")
    private String locationId;

    @ApiModelProperty(value = "父编号")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "省名")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "市名")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "区名")
    @TableField("location_name")
    private String locationName;


    public static final String ID = "id";

    public static final String PROVINCE_ID = "province_id";

    public static final String CITY_ID = "city_id";

    public static final String LOCATION_ID = "location_id";

    public static final String PARENT_ID = "parent_id";

    public static final String PROVINCE_NAME = "province_name";

    public static final String CITY_NAME = "city_name";

    public static final String LOCATION_NAME = "location_name";

}
